package com.english.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.english.entity.Banner;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 轮播图数据访问层
 * 
 * @author wlq
 * @since 2025-08-05
 */
@Mapper
public interface BannerMapper extends BaseMapper<Banner> {
    
    /**
     * 获取所有上架的轮播图，按排序顺序排列
     * 
     * @return 轮播图列表
     */
    List<Banner> selectActiveBanners();
} 